package com.example.vo;

import java.util.Map;

import org.apache.kafka.common.serialization.Deserializer;

import com.example.config.BeanUtils;

public class DecodeingKafka implements Deserializer<Object> {

	@Override
	public void configure(Map<String, ?> configs, boolean isKey) {
	}

	@Override
	public Object deserialize(String topic, byte[] data) {
		BeanUtils.byte2Obj(data);
		return BeanUtils.byte2Obj(data);
	}

	@Override
	public void close() {

	}
}
